#include <iostream>
#include <cstdlib>
#include <fstream>

#define TAM 10

int main(int argc, char **argv)
{
	std::ofstream f;
  long int n, v;

  n = atoi(argv[1]);

	srand(time(NULL));

  f.open(argv[2],std::ios::out);

	for(long int i = 0; i < n; i++)
	{
    for(int j = 0; j < TAM; j++)
    {
		  v = rand()%100;
		  f.write((const char *)(&v),sizeof(int));
    }
	}

	f.close();

	return 0;
} 
